package com.sharemarking.wa.platform.dto.orgVerify;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.sharemarking.wa.platform.dto.wasteType.WasteTypeListDto;

import java.util.List;

/**
 * @author dxy
 */
public class OrgVerifyDto {

    private String name;
    private String industry;
    private String legalRepresentative;
    private String address;
    private String licenseNumber;
    private Integer examState;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String rejectReason;
    private String wasteScale;
    private String licenseLink;
    private List<WasteTypeListDto> wasteTypeList;
    private List<String> attachmentList;
    private String licenseUrl;
    private String dangerousUrl;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIndustry() {
        return industry;
    }

    public void setIndustry(String industry) {
        this.industry = industry;
    }

    public String getLegalRepresentative() {
        return legalRepresentative;
    }

    public void setLegalRepresentative(String legalRepresentative) {
        this.legalRepresentative = legalRepresentative;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getLicenseNumber() {
        return licenseNumber;
    }

    public void setLicenseNumber(String licenseNumber) {
        this.licenseNumber = licenseNumber;
    }

    public Integer getExamState() {
        return examState;
    }

    public void setExamState(Integer examState) {
        this.examState = examState;
    }

    public String getRejectReason() {
        if (examState != null && examState == 2) {
            return rejectReason;
        }
        return null;
    }

    public void setRejectReason(String rejectReason) {
        this.rejectReason = rejectReason;
    }

    public String getWasteScale() {
        return wasteScale;
    }

    public void setWasteScale(String wasteScale) {
        this.wasteScale = wasteScale;
    }

    public String getLicenseLink() {
        return licenseLink;
    }

    public void setLicenseLink(String licenseLink) {
        this.licenseLink = licenseLink;
    }

    public List<WasteTypeListDto> getWasteTypeList() {
        return wasteTypeList;
    }

    public void setWasteTypeList(List<WasteTypeListDto> wasteTypeList) {
        this.wasteTypeList = wasteTypeList;
    }

    public List<String> getAttachmentList() {
        return attachmentList;
    }

    public void setAttachmentList(List<String> attachmentList) {
        this.attachmentList = attachmentList;
    }

    public String getLicenseUrl() {
        return licenseUrl;
    }

    public void setLicenseUrl(String licenseUrl) {
        this.licenseUrl = licenseUrl;
    }

    public String getDangerousUrl() {
        return dangerousUrl;
    }

    public void setDangerousUrl(String dangerousUrl) {
        this.dangerousUrl = dangerousUrl;
    }
}
